package com.xmg.day04;

import com.xmg.day02.M;

/**
 * @Author: mazhongqing
 * @Date: 2020/10/22 11:27
 */
public enum SingletonEnumDemo {
    INSTANCE;
    private Resource resourceInstance;
    private M mInstance;
    SingletonEnumDemo(){
        resourceInstance = new Resource();
        mInstance = new M();
    }
    public Resource getResourceInstance(){
        return resourceInstance;
    }
    public M getmInstance(){
        return mInstance;
    }
}
